home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // Supplier.rep - Mugs Sample Application
- //
- // Form style detail report for supplier table.
- //
- // Dependencies: SUPPLIER.SQL
- // CONNECT.DMD
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.6 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- SET TALK OFF
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/05/97
- //
- local r
- r = new SUPPLIERReport()
- r.render()
-
- class SUPPLIERReport of REPORT
- with (this)
- title = "Supplier"
- scaleFontSize = 8
- scaleFontBold = false
- endwith
-
- this.DMCONNECT = new DATAMODREF()
- this.DMCONNECT.parent = this
- with (this.DMCONNECT)
- filename = "connect.dmd"
- dataModClass = "ConnectDataModule"
- share = 0
- active = true
- left = 0
- top = 0
- endwith
-
-
- this.SUPPLIER1 = new QUERY()
- this.SUPPLIER1.parent = this
- with (this.SUPPLIER1)
- left = 500
- top = 0
- database = form.DMCONNECT.ref.dbmugs
- sql = "@supplier.sql"
- requestLive = false
- active = true
- endwith
-
-
-
-
- with (this.printer)
- duplex = 1
- orientation = 1
- paperSource = 15
- paperSize = 1
- resolution = 4
- color = 2
- trueTypeFonts = 2
- endwith
-
-
- this.STREAMSOURCE1 = new STREAMSOURCE(this)
-
-
-
- with (this.STREAMSOURCE1.detailBand)
- height = 4600
- beginNewFrame = true
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLECOMPANY1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLECOMPANY1)
- height = 275
- left = 215
- top = 600
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>Company</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUECOMPANY = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUECOMPANY)
- height = 300
- left = 200
- top = 850
- width = 3000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["COMPANY"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLECONTACT1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLECONTACT1)
- height = 195
- left = 155
- top = 1250
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>Contact</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUECONTACT = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUECONTACT)
- height = 300
- left = 200
- top = 1500
- width = 3000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["CONTACT"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLESUPPLIERID1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLESUPPLIERID1)
- height = 275
- left = 250
- top = 100
- width = 1250
- metric = 1
- colorNormal = "BtnText"
- alignVertical = 1
- fontSize = 9
- fontBold = true
- text = "Supplier ID:"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.HTMLSUPPLIERID1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.HTMLSUPPLIERID1)
- height = 275
- left = 1800
- top = 100
- width = 1000
- metric = 1
- colorNormal = "BtnText"
- alignVertical = 1
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["SUPPLIER ID"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEPHONE1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEPHONE1)
- height = 275
- left = 200
- top = 1900
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>Phone</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEPHONE = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEPHONE)
- height = 300
- left = 200
- top = 2150
- width = 2310
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["PHONE"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEFAX1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEFAX1)
- height = 275
- left = 3500
- top = 1900
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>Fax</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEFAX = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEFAX)
- height = 300
- left = 3500
- top = 2150
- width = 2310
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["FAX"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEEMAIL1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEEMAIL1)
- height = 275
- left = 3500
- top = 1250
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>E-mail</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEEMAIL = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEEMAIL)
- height = 300
- left = 3500
- top = 1500
- width = 4000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["EMAIL"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUESTREET1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUESTREET1)
- height = 250
- left = 200
- top = 2800
- width = 5000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["STREET1"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUESTREET2 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUESTREET2)
- height = 250
- left = 200
- top = 3100
- width = 5000
- metric = 1
- colorNormal = "BtnText"
- suppressIfBlank = true
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["STREET2"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUECITY = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUECITY)
- height = 250
- left = 200
- top = 3400
- width = 5000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["CITY"].Value + " " + this.Form.supplier1.Rowset.Fields["STATE ID"].Value + ", " + this.Form.supplier1.Rowset.Fields["POSTAL"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUECOUNTRYID = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUECOUNTRYID)
- height = 250
- left = 200
- top = 3700
- width = 2310
- metric = 1
- colorNormal = "BtnText"
- fontSize = 11
- text = {||this.Form.supplier1.Rowset.Fields["COUNTRY ID"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TEXT1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXT1)
- height = 200
- left = 200
- top = 2550
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = "<H4>Address</H4>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.LINE1 = new LINE(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.LINE1)
- right = 8000
- top = 450
- bottom = 450
- width = 3
- metric = 1
- colorNormal = "WindowText"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TEXT3 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TEXT3)
- height = 275
- left = 7000
- top = 100
- width = 1000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 9
- fontBold = true
- text = {||DATE()}
- endwith
-
-
- this.PAGETEMPLATE1 = new PAGETEMPLATE(this)
- with (this.PAGETEMPLATE1)
- height = 15840
- width = 12240
- marginTop = 720
- marginLeft = 720
- marginBottom = 720
- marginRight = 720
- gridLineWidth = 0
- endwith
-
-
- this.PAGETEMPLATE1.STREAMFRAME1 = new STREAMFRAME(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.STREAMFRAME1)
- height = 4250
- left = 25
- top = 525
- width = 8000
- metric = 1
- borderStyle = 4
- form.STREAMFRAME1 = form.pagetemplate1.streamframe1
- endwith
-
-
- this.PAGETEMPLATE1.TEXTTITLE = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXTTITLE)
- height = 500
- left = 50
- width = 8000
- metric = 1
- colorNormal = "purple"
- alignVertical = 1
- alignHorizontal = 1
- fontName = "Times New Roman"
- fontSize = 8
- fontBold = true
- text = "<h1>Supplier Information</h1>"
- form.TEXTTITLE = form.pagetemplate1.texttitle
- endwith
-
-
- this.PAGETEMPLATE1.TEXTPAGE = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXTPAGE)
- height = 161
- left = 360
- top = 13140
- width = 856
- metric = 1
- colorNormal = "BtnText"
- fontSize = 8
- fontBold = true
- text = {||this.Parent.Parent.ReportPage}
- form.TEXTPAGE = form.pagetemplate1.textpage
- endwith
-
-
-
-
-
-
-
-
-
-
- this.reportGroup.footerBand.LABELTOTAL = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.LABELTOTAL)
- height = 300
- top = 50
- width = 2750
- metric = 1
- colorNormal = "purple"
- fontBold = true
- text = "Total number of suppliers:"
- endwith
-
-
- this.reportGroup.footerBand.VALUECOUNT = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.VALUECOUNT)
- height = 300
- left = 3000
- top = 50
- width = 2000
- metric = 1
- variableHeight = true
- colorNormal = "purple"
- fontBold = true
- text = {||this.Parent.Parent.agCount({||this.Parent.STREAMSOURCE1.Rowset.Fields["COMPANY"].Value})}
- endwith
-
-
- this.firstPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.streamframe1.streamSource = this.form.STREAMSOURCE1
- this.form.STREAMSOURCE1.rowset = this.form.supplier1.rowset
- endclass
-